package com.twu.option;

import com.twu.bean.User;

public class CheckMemberShipDetailsOption implements Option
{
	private final User currentUser;

	public CheckMemberShipDetailsOption(User currentUser)
	{
		this.currentUser = currentUser;
	}

	public CheckMemberShipDetailsOption()
	{
		this.currentUser = null;
	}

	@Override
	public String execute()
	{
		return currentUser == null ? "Please talk to a Librarian. Thank you." : currentUser.toString();
	}

	@Override
	public String getTips()
	{
		return "There is no options.";
	}

	@Override
	public Option selectOption(int option)
	{
		return this;
	}

	@Override
	public String toString()
	{
		return "Check my membership details";
	}
}
